package com.link_with_health.mapper;

import com.link_with_health.model.DoctorEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DoctorMapper {
    DoctorEntity queryDoctorsByDrId(Long DrId);

    DoctorEntity queryDoctorsByUserId(Long userId);

    List<DoctorEntity> queryDoctorsByRealName(String realName);

    List<DoctorEntity> queryAllDoctors();

    List<DoctorEntity> queryDoctorsByHospitalId(Long hospitalId);

    List<DoctorEntity> queryDoctorsByTitle(Integer titleId);

    List<DoctorEntity> queryDoctorsIncludeParentDeparts(Long departmentId);

    List<DoctorEntity> queryDoctorsByDepartment(Long departmentId);

    List<DoctorEntity> queryDoctorsByStatus(Integer status);

    List<DoctorEntity> queryDoctorsByNameOrHospitalName(@Param("doctorName") String doctorName, @Param("hospitalName") String hospitalName);

    int updateDoctor(DoctorEntity doctors);

    int insertDoctor(DoctorEntity doctors);

    int deleteDoctor(Long DrId);
}
